//
//  TabbarViewController.swift
//  PhotoLine
//
//  Created by 吴帅 on 17/9/13.
//  Copyright © 2017年 吴帅. All rights reserved.
//

import UIKit

class TabbarViewController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.setUpAllChildViewController();
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /// 添加所有的子视图控制器
    public func setUpAllChildViewController() {
        
        let vc = LoginController();
        self.viewControllers = [vc];
    }
    
    
    /// 添加子视图控制器
    ///
    /// - parameter viewController: 子视图控制器实例
    /// - parameter index:          子视图控制器位置
    /// - parameter title:          子视图控制器的Title
    /// - parameter imageName:      子视图控制器的图片
    fileprivate func setUpViewController(viewController: UIViewController, index: Int, title: String, imageName: String) {
        
        let items = self.tabBar.items;
        let item:UITabBarItem = items![index];
        
        item.title = title;
        
        
    }

}
